package se.nikmel.AnDisper.Application;

import se.nikmel.AnDisper.DisperServer.IconCache;
import android.net.Uri;

public class Application {
	private IconCache m_oIconCache;
	
	private String m_sAppID;	
	private String m_sAppName;	
	
	//private Picture m_icnIcon;
	private String m_sIcon_MD5;	
	
	public Application(IconCache p_oIconCache, String p_sID, String p_sName, String p_sIcon_MD5){		
		m_sAppID = p_sID;
		m_sAppName = p_sName;
		m_sIcon_MD5 = p_sIcon_MD5;
		m_oIconCache = p_oIconCache;
	}
	public String getID(){
		return m_sAppID;
	}
	public String getName(){
		return m_sAppName;		
	}
	public Uri getIcon(){
		return m_oIconCache.getIconURI(m_sAppID, m_sIcon_MD5);		
	}
	public String getIcon_MD5(){
		return m_sIcon_MD5;
	}
}
